package review.chapter03;

/**
 * Enjoy programming!!!
 * Time: 2021/12/22 -  20:40
 */
public class TwoObjects {
    public static void main(String[] args){
        B b1 = new B();
        B b2 = new B();

        int[] s1 = {1, 2, 3};
        int[] s2 = {1, 2, 3};

        System.out.println(b1 == b2);
        System.out.println(b1 != b2);
        System.out.println(b1.equals(b2));

        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));

    }
}
class B{
    int x;
    B(){
        x = 1;
    }
}
